/**
 * @author sahsharm
 */
/*(function($) {
 var source;
 var template;
 var data1 = {
 lessons : [{
 name : "Lesson 1",
 description : "This is lesson 1"
 },
 {
 name : "Lesson 2",
 description : "This is lesson 2"
 },
 {
 name : "Lesson 3",
 description : "This is lesson 3"
 },
 {
 name : "Lesson 4",
 description : "This is lesson 4"
 }]
 };

 $.get("/EDFU/modules/course/template/lesson_info.txt", function(data) {
 $(data).filter('script[type="text/x-handlebars"]').each(function() {
 template = Handlebars.compile($(this).html());
 });
 $("#lesson-container").html(template(data1));
 $('.collapse').collapsiblePanel();
 });
 })(jQuery);*/

var courseMgtBaseURL = "/EDU/e/coursemgt";



function getCoursesForMe() {
	var grid;
	var columns = [{
		id : "courseOfferingCode",
		name : "Course Offering Code",
		field : "courseOfferingCode"
	}, {
		id : "status",
		name : "Status",
		field : "status"
	},  {
		id : "ownerUserId",
		name : "Taught By",
		field : "ownerUserId"
	}, {
		
	}
	];

	var options = {
		enableCellNavigation : true,
		enableColumnReorder : false,
		autoHeight : true,
		forceFitColumns: true
	};

	$.getJSON(courseMgtBaseURL + "/users/shwemish/courses", function(data) {
		grid = new Slick.Grid("#courses-overview", data, columns, options);
		$("#courses-overview").show();
	})
}